import React, { Component } from 'react'
import Dldom from "../components/Dldom"
import {connect} from "react-redux"
class Home extends Component {
    render() {
        return (
            <div>
                <div className="title">
     
                       <select onClick={()=>{this.props.history.push("/index/detial")}}></select>
                <span>搜索</span>
                </div>
                <div className="wrap">
                {
                    this.props.list.map((item,index)=>{
                        return <Dldom item={item} key={index}></Dldom>
                    })
                }
                </div>
            </div>
        )
    }
}
export default connect(
    (state)=>{
        return {
            list:state.list
        }
    },
    (dispatch)=>{
        return {

        }
    }
)(Home)
